package kata09.info;

import kata09.discount.IGoodsDiscountStrategy;
import lombok.Data;
import lombok.NoArgsConstructor;

//商品折扣
@NoArgsConstructor
@Data
public class GoodsDiscount {

    //折扣名称
    private String name;

    //商品折扣策略
    private IGoodsDiscountStrategy goodsDiscountStrategy;


    public GoodsDiscount(String name,IGoodsDiscountStrategy goodsDiscountStrategy){
        this.name = name;
        this.goodsDiscountStrategy = goodsDiscountStrategy;
    }

}
